﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Markup;



namespace for7raid.Control
{
    [ContentProperty("Actions")]
    public sealed class KeyUpEventTrigger :System.Windows.Interactivity.EventTriggerBase<UIElement>
    {
        public Key Key { get; set; }
        public ModifierKeys Modifier { get; set; }

        protected override string GetEventName()
        {
            return "KeyUp";
            
        }

        protected override void OnEvent(EventArgs eventArgs)
        {
            if ((eventArgs as KeyEventArgs).Key == Key && Modifier == Keyboard.Modifiers)
                base.OnEvent(eventArgs);
        }
        
    }
}
